Use ptrdiff_t for hash table indexes.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2011 06:07:07 +0000 (23:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2011 06:07:07 +0000 (23:07 -0700)
commite6affd5de5d591f7fb592ce7219c04806090b68e
treef24fe5e79fe1294b26b6df947a5e54b2500bbaa2
parent0042b031b66694ea9775a8455b88d1b620fbfc14
Use ptrdiff_t for hash table indexes.

* category.c (hash_get_category_set):
* ccl.c (ccl_driver):
* charset.h (struct charset.hash_index, CHECK_CHARSET_GET_ID):
* coding.c (coding_system_charset_list, detect_coding_system):
* coding.h (struct coding_system.id):
* composite.c (get_composition_id, gstring_lookup_cache):
* fns.c (hash_lookup, hash_put, Fgethash, Fputhash):
* image.c (xpm_get_color_table_h):
* lisp.h (hash_lookup, hash_put):
* minibuf.c (Ftest_completion):
Use ptrdiff_t for hash table indexes, not int (which is too
narrow, on 64-bit hosts) or EMACS_INT (which is too wide, on
32-bit --with-wide-int hosts).
src/ChangeLog
src/category.c
src/ccl.c
src/charset.h
src/coding.c
src/coding.h
src/composite.c
src/fns.c
src/image.c
src/lisp.h
src/minibuf.c